/*
 *    This file is part of SSHTunneler.
 *
 *    Copyright 2009 Jean-Sebastien Gelinas <calestar@gmail.com>
 *
 *    SSHTunneler is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    SSHTunneler is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with SSHTunneler.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package sshtunneler.toolsgui;

import sshtunneler.tools.Tool;

public class PanelToolEditTool extends javax.swing.JPanel {
	private static final long serialVersionUID = 7495155810957641584L;

	public PanelToolEditTool(Tool t) {
		this.initComponents();
		this.txt_tool_description.setText(t.getDescription());
		this.txt_tool_name.setText(t.getName());
		this.setVisible(true);
	}

	private void initComponents() {

		this.jPanel1 = new javax.swing.JPanel();
		this.jLabel1 = new javax.swing.JLabel();
		this.txt_tool_name = new javax.swing.JTextField();
		this.jPanel2 = new javax.swing.JPanel();
		this.jScrollPane2 = new javax.swing.JScrollPane();
		this.txt_tool_description = new javax.swing.JTextArea();
		this.jLabel2 = new javax.swing.JLabel();

		this.setName("Form");
		this.setLayout(new java.awt.BorderLayout(0, 15));

		this.jPanel1.setName("jPanel1");
		this.jPanel1.setLayout(new java.awt.BorderLayout());

		this.jLabel1.setText("Name");
		this.jLabel1.setName("jLabel1");
		this.jPanel1.add(this.jLabel1, java.awt.BorderLayout.NORTH);

		this.txt_tool_name.setEditable(false);
		this.txt_tool_name.setName("txt_tool_name");
		this.jPanel1.add(this.txt_tool_name, java.awt.BorderLayout.CENTER);

		this.add(this.jPanel1, java.awt.BorderLayout.NORTH);

		this.jPanel2.setName("jPanel2");
		this.jPanel2.setLayout(new java.awt.BorderLayout());

		this.jScrollPane2.setName("jScrollPane2");

		this.txt_tool_description.setColumns(20);
		this.txt_tool_description.setRows(5);
		this.txt_tool_description.setName("txt_tool_description");
		this.jScrollPane2.setViewportView(this.txt_tool_description);

		this.jPanel2.add(this.jScrollPane2, java.awt.BorderLayout.CENTER);

		this.jLabel2.setText("Description");
		this.jLabel2.setName("jLabel2");
		this.jPanel2.add(this.jLabel2, java.awt.BorderLayout.NORTH);

		this.add(this.jPanel2, java.awt.BorderLayout.CENTER);
	}

	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JPanel jPanel2;
	private javax.swing.JScrollPane jScrollPane2;
	private javax.swing.JTextArea txt_tool_description;
	private javax.swing.JTextField txt_tool_name;

}
